package cn.myframe.service.sys.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import cn.myframe.dao.sys.SysInfoCompanyDao;
import cn.myframe.entity.sys.SysInfoCompanyEntity;
import cn.myframe.service.sys.SysInfoCompanyService;



@Service("sysInfoCompanyService")
public class SysInfoCompanyServiceImpl implements SysInfoCompanyService {
	@Autowired
	private SysInfoCompanyDao sysInfoCompanyDao;
	
	@Override
	public SysInfoCompanyEntity queryObject(Long id){
		return sysInfoCompanyDao.queryObject(id);
	}
	
	@Override
	public List<SysInfoCompanyEntity> queryList(Map<String, Object> map){
		return sysInfoCompanyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysInfoCompanyDao.queryTotal(map);
	}
	
	@Override
	public void save(SysInfoCompanyEntity sysInfoCompany){
		sysInfoCompanyDao.save(sysInfoCompany);
	}
	
	@Override
	public void update(SysInfoCompanyEntity sysInfoCompany){
		sysInfoCompanyDao.update(sysInfoCompany);
	}
	
	@Override
	public void delete(Long id){
		sysInfoCompanyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysInfoCompanyDao.deleteBatch(ids);
	}
	
	@Override
	public int checkExist(String id, String name) {
		return sysInfoCompanyDao.checkExist(id, name);
	}
	
	@Override
	public int updateStatus(Long[] ids, Integer status) {
		return sysInfoCompanyDao.updateStatus(ids, status);
	}
	
	@Override
	public void deleteByInfoId(Long infoId){
		sysInfoCompanyDao.deleteByInfoId(infoId);
	}
	
	@Override
	public void deleteByInfoIds(Long[] infoId){
		sysInfoCompanyDao.deleteByInfoIds(infoId);
	}
	
}
